include_directories(../libzip)

set(PACKAGER_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
configure_file(packager.res.rc.in packager.res.rc)

add_executable(osgi-packager
    Packager.cc
    ${CMAKE_CURRENT_BINARY_DIR}/packager.res.rc
)

target_link_libraries(osgi-packager OSGi++)

set_target_properties(osgi-packager PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY    ${OSGi_BINARY_DIR}/bin
    INSTALL_RPATH               \$ORIGIN/../lib
)

install(TARGETS osgi-packager
    EXPORT OSGiTargets
    DESTINATION "${INSTALL_BIN_DIR}" COMPONENT dev
)
